package com.gnerv.author.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 博客平台-文章统计表
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-08-07
 */
@TableName("blog_article_statistics")
public class ArticleStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文章业务主键
     */
    private String aId;

    /**
     * 文章点击量
     */
    private Integer click;

    /**
     * 文章转发量
     */
    private Integer forward;

    /**
     * 文章评论量
     */
    private Integer comment;
    public ArticleStatistics() {
    }

    public ArticleStatistics(String aId) {
        this.aId = aId;
    }

    public ArticleStatistics(Integer click, Integer forward, Integer comment) {
        this.click = click;
        this.forward = forward;
        this.comment = comment;
    }

    public String getaId() {
        return aId;
    }

    public void setaId(String aId) {
        this.aId = aId;
    }
    public Integer getClick() {
        return click;
    }

    public void setClick(Integer click) {
        this.click = click;
    }
    public Integer getForward() {
        return forward;
    }

    public void setForward(Integer forward) {
        this.forward = forward;
    }
    public Integer getComment() {
        return comment;
    }

    public void setComment(Integer comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "ArticleStatistics{" +
            "aId=" + aId +
            ", click=" + click +
            ", forward=" + forward +
            ", comment=" + comment +
        "}";
    }
}
